/**
 * describe:
 *
 * @author chaP
 * @date 2019/04/08
 */
package CodingTest.AC20190409;


import java.util.HashSet;
import java.util.Scanner;

public class Main {
    public boolean Main(String[] str){
        if(str == null) return false;
        HashSet<String> hs = new HashSet<>();
        for(int i = 1;i<str.length;i++){
            if(hs.contains(str[i])){
                return true;
            }else{
                hs.add(str[i]);
            }
        }
        return false;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Main m = new Main();
        String s = sc.nextLine();
        String str[] = s.split(",");
        System.out.println(m.Main(str));

    }
}
